package ro.msg.office.ticketmanager.back.ifc;

import java.util.Date;
import java.util.List;
import java.util.Set;

import javax.ejb.Local;

import ro.msg.office.entities.Ticket;
import ro.msg.office.entities.User;
import ro.msg.office.ticketmanager.DO.DepartmentDO;
import ro.msg.office.ticketmanager.DO.TicketDO;
import ro.msg.office.ticketmanager.DO.UserDO;

@Local
public interface TicketManager {
	public Set<TicketDO> mapTickets(Set<Ticket> t);
	public User findUserByTicketId(Long id);
	public UserDO findUserDOByTicketId(Long id);
	public boolean createTicket(TicketDO ticketDO);
	public Set<TicketDO> receiveTickets(UserDO userDo);
	public TicketDO getTicketInfo(TicketDO ticketDo);
	public boolean updateTicket(TicketDO ticketDO);
	public boolean updateTicketByAdmin(TicketDO ticketDO);
	public Set<TicketDO> getTicketsByDepartment(DepartmentDO departmentDO);
}
